#!/usr/bin/python
# -*- coding: utf-8 -*-
# @version        : 1.0
# @Create Time    : 2024/9/6 11:11
# @File           : vendor
# @IDE            : PyCharm
# @desc           : 描述

from typing import Optional
from pydantic import BaseModel, ConfigDict
from core.data_types import DatetimeStr


class Rebut(BaseModel):
    rebut_type: str = None
    rebut_form_no: str = None

    before_status: str = None
    after_status: str = None

    reason: str = None

    create_user: Optional[str] = None


class RebutSimpleOut(Rebut):
    model_config = ConfigDict(from_attributes=True)

    id: int
    update_datetime: DatetimeStr
    create_datetime: DatetimeStr
